import { getMerchantsEnums } from "@/api/zhaoyuan"
import { ref, onMounted } from 'vue'
import type { PlusColumn } from 'plus-pro-components'
onMounted(() => { 
  getMerchantsEnums().then(res => { 
    console.log(res);
  })
})
const searchState = ref({
  status: '0',
  time: new Date().toString()
})

const searchColumns: PlusColumn[] = [
  {
    label: '商户名称',
    prop: 'name',
  },
  {
    label: '商户类型',
    prop: 'businessType',
    valueType: 'select',
    options: []
  },
  {
    label: '地址',
    prop: 'address',
  }
]

const handleChange = (values: any) => {
  console.log(values, 'change')
}
const handleSearch = (values: any) => {
  console.log(values, 'search')
}
const handleReset = () => {
  console.log('handleReset')
}
  return {
    form
  };
}